package io.coderyeah.user.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * @TableName t_user
 */
@Data
public class User implements Serializable {

    private Long id;

    private String username;

    private String phone;

    private String email;

    /**
     * 盐值
     */
    private String salt;

    /**
     * 密码，md5加密加盐
     */
    private String password;

    /**
     * 员工状态 - 1启用，0禁用
     */
    private Integer state;

    private Integer age;

    @TableField("createtime")
    private Date createTime = new Date();

    @TableField("headImg")
    private String headImg;

    private Long logininfoId;

    private static final long serialVersionUID = 1L;
}